From: Florian Müllner Date: Thu, 20 Oct 2011 20:44:09 +0000 (+0200) Subject: user-menu: Minor style fix X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7395 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dde124ab5af04449fe01cad0e352034480b999f3;p=gnome-shell.git user-menu: Minor style fix Use cameCase for properties/methods defined in JS and under_score for properties/methods imported from C. --- diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index d2b0ea37e..b232ac47e 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -430,7 +430,7 @@ UserMenuButton.prototype = { this._session = new GnomeSession.SessionManager(); this._haveShutdown = true; - this._account_mgr = Tp.AccountManager.dup() + this._accountMgr = Tp.AccountManager.dup() this._upClient = new UPowerGlib.Client(); this._screenSaverProxy = new ScreenSaver.ScreenSaverProxy(); @@ -457,9 +457,9 @@ UserMenuButton.prototype = { Lang.bind(this, this._updateSwitch)); this._presence.getStatus(Lang.bind(this, this._updateSwitch)); - this._account_mgr.connect('most-available-presence-changed', + this._accountMgr.connect('most-available-presence-changed', Lang.bind(this, this._updatePresenceIcon)); - this._account_mgr.prepare_async(null, Lang.bind(this, + this._accountMgr.prepare_async(null, Lang.bind(this, function(mgr) { let [presence, s, msg] = mgr.get_most_available_presence(); this._updatePresenceIcon(mgr, presence, s, msg); @@ -653,7 +653,7 @@ UserMenuButton.prototype = { } else { status = GnomeSession.PresenceStatus.BUSY; - let [presence, s, msg] = this._account_mgr.get_most_available_presence(); + let [presence, s, msg] = this._accountMgr.get_most_available_presence(); let newPresence = this._statusChooser.getIMPresenceForSessionStatus(status); if (newPresence != presence && newPresence == Tp.ConnectionPresenceType.BUSY)